/* ====================================================================
   Novaworks Client Portal — master stylesheet
   Nova Design System tokens, bundled Poppins + Playfair Display.
   Ported from the K26 Demo Gallery brand system.
   Mobile-first responsive.
   ==================================================================== */

@font-face {
  font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: block;
  src: url("fonts/Poppins-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: block;
  src: url("fonts/Poppins-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: block;
  src: url("fonts/Poppins-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: block;
  src: url("fonts/Poppins-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display"; font-weight: 400; font-style: normal; font-display: block;
  src: url("fonts/PlayfairDisplay-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display"; font-weight: 700; font-style: normal; font-display: block;
  src: url("fonts/PlayfairDisplay-Bold.woff2") format("woff2");
}

/* ---------- Nova design tokens ---------- */
:root {
  --bg-app:       #1F2257;
  --bg-deep:      #131642;
  --bg-elev:      #2A2E6B;
  --brand-500:    #9965E5;
  --brand-300:    #BD90FB;
  --brand-600:    #6A40BE;
  --brand-900:    #5320B6;
  --ink:          #FEFFFF;
  --ink-muted:    #C9C9E3;
  --ink-dim:      #7C7FA8;
  --font-serif:   "Playfair Display", Georgia, "Times New Roman", serif;

  --accent-teal:        #2DD4BF;
  --accent-teal-soft:   #5EEAD4;
  --accent-lavender:    #BD90FB;
  --accent-lavender-soft:#D9BBFF;
  --accent-indigo:      #818CF8;
  --accent-indigo-soft: #A5B4FC;
  --accent-mint:        #34D399;
  --accent-mint-soft:   #6EE7B7;
  --accent-sky:         #38BDF8;
  --accent-sky-soft:    #7DD3FC;

  --glass-bg:     linear-gradient(135deg, rgba(153, 101, 229, 0.08), rgba(18, 52, 73, 0.45));
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --duration-fast:  150ms;
  --duration-med:   320ms;
  --duration-slow:  700ms;
  --ease:           cubic-bezier(0.2, 0.8, 0.2, 1);

  --safe-x: clamp(20px, 5vw, 80px);
  --safe-y: clamp(24px, 4vh, 60px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-app);
  background-image:
    radial-gradient(ellipse at 18% 0%,  rgba(189, 144, 251, 0.10), transparent 55%),
    radial-gradient(ellipse at 88% 100%, rgba(189, 144, 251, 0.14), transparent 55%);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, .hero__title, .section__title, .demo-block__title,
.context-card__headline, .benefits-card__headline,
.closing__title, .closing-band__title {
  text-wrap: balance;
  hyphens: none;
}
img, video, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Ambient purple orbs */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
body::before {
  top: -220px; right: -180px;
  width: clamp(360px, 50vw, 680px); height: clamp(360px, 50vw, 680px);
  background: radial-gradient(circle, rgba(153, 101, 229, 0.20), transparent 70%);
}
body::after {
  bottom: -260px; left: -220px;
  width: clamp(380px, 55vw, 720px); height: clamp(380px, 55vw, 720px);
  background: radial-gradient(circle, rgba(83, 32, 182, 0.18), transparent 70%);
}

/* ====================================================================
   PASSCODE GATE
   ==================================================================== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  background: var(--bg-app);
  background-image:
    radial-gradient(ellipse at 18% 0%,  rgba(189, 144, 251, 0.10), transparent 55%),
    radial-gradient(ellipse at 88% 100%, rgba(189, 144, 251, 0.14), transparent 55%);
}
.gate.is-hidden { display: none; }
.gate__card {
  position: relative;
  width: min(440px, 100%);
  padding: clamp(32px, 6vw, 48px) clamp(24px, 5vw, 44px);
  background: linear-gradient(135deg, rgba(153, 101, 229, 0.10), rgba(18, 52, 73, 0.45));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(189, 144, 251, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  text-align: center;
}
.gate__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 28px;
  width: 100%;
}
.gate__logo .nova-logo {
  height: 44px;
  width: auto;
  display: block;
  margin: 0 auto;
}
.gate__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--brand-300);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.gate__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.gate__form { display: flex; flex-direction: column; gap: 12px; }
.gate__input {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(189, 144, 251, 0.28);
  border-radius: var(--radius-md);
  text-align: center;
  letter-spacing: 2px;
  outline: none;
  transition: all var(--duration-fast) var(--ease);
}
.gate__input:focus {
  border-color: var(--brand-300);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-300) 18%, transparent);
}
.gate__input::placeholder { color: var(--ink-dim); letter-spacing: 0.5px; }
.gate__submit {
  padding: 14px 24px;
  background: var(--brand-500);
  color: var(--bg-app);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(153, 101, 229, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--duration-fast) var(--ease);
}
.gate__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(153, 101, 229, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.gate__error {
  margin-top: 14px;
  font-size: 12px;
  color: #FCA5A5;
  letter-spacing: 0.3px;
  min-height: 16px;
}
/* (gate__footer removed) */

/* ====================================================================
   PAGE LAYOUT
   ==================================================================== */
.page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--safe-y) var(--safe-x) 80px;
}

/* ---------- Top nav ---------- */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(36px, 6vh, 72px);
  gap: 16px;
  flex-wrap: wrap;
}
.topnav .wordmark { display: flex; align-items: center; }
.topnav .nova-logo { height: clamp(72px, 9vw, 102px); width: auto; }
.topnav__meta {
  font-size: clamp(10px, 1.4vw, 11px);
  font-weight: 700;
  letter-spacing: clamp(2px, 0.4vw, 4px);
  text-transform: uppercase;
  color: var(--ink-dim);
}
.topnav__meta .accent { color: var(--brand-300); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 16px 0 clamp(56px, 8vh, 100px);
}
.hero__eyebrow {
  font-size: clamp(10px, 1.4vw, 12px);
  font-weight: 700;
  letter-spacing: clamp(3px, 0.6vw, 6px);
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6.5vw, 88px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.04;
  margin-bottom: 22px;
  max-width: 18ch;
}
.hero__title .accent { color: var(--brand-300); }
.hero__sub {
  font-size: clamp(15px, 1.5vw, 21px);
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 80ch;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.hero__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(189, 144, 251, 0.18);
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}
.hero__meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
}

/* Attendees: chip-style list of names with LinkedIn icon links */
.hero__meta-item--attendees { min-width: 240px; flex: 1 1 auto; }
.hero__attendees {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__attendee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(189, 144, 251, 0.25);
  border-radius: 999px;
  letter-spacing: -0.1px;
  transition: all var(--duration-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.hero__attendee:hover {
  background: rgba(189, 144, 251, 0.12);
  border-color: rgba(189, 144, 251, 0.55);
  transform: translateY(-1px);
}
.hero__attendee svg {
  width: 14px;
  height: 14px;
  color: var(--brand-300);
  flex-shrink: 0;
}
.hero__attendee--plain { cursor: default; }
.hero__attendee--plain:hover { transform: none; background: rgba(255, 255, 255, 0.05); border-color: rgba(189, 144, 251, 0.25); }

/* Hero dot texture decoration (top right) */
.page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(280px, 55vw, 900px);
  aspect-ratio: 938 / 408;
  background-image: url('dot-texture.svg');
  background-position: top right;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom left, #000 0%, transparent 70%);
  mask-image: linear-gradient(to bottom left, #000 0%, transparent 70%);
}

/* ---------- Section base ---------- */
.section {
  margin-bottom: clamp(56px, 8vh, 100px);
  position: relative;
  z-index: 1;
}
.section__header {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 2vw, 18px);
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--sec-color, var(--brand-300)) 28%, transparent);
  flex-wrap: wrap;
}
.section__num {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--sec-color-soft, var(--brand-300));
  letter-spacing: -0.5px;
  font-style: italic;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
  flex: 1;
  min-width: 200px;
}
.section__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sec-color-soft, var(--brand-300));
}
.section__intro {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 86ch;
  margin-bottom: 24px;
}

.section--deck         { --sec-color: var(--accent-lavender); --sec-color-soft: var(--accent-lavender-soft); }
.section--demos        { --sec-color: var(--accent-teal);     --sec-color-soft: var(--accent-teal-soft); }
.section--architecture { --sec-color: var(--accent-indigo);   --sec-color-soft: var(--accent-indigo-soft); }
.section--learn        { --sec-color: var(--accent-sky);      --sec-color-soft: var(--accent-sky-soft); }

/* ====================================================================
   DECK VIEWER
   Inline preview + fullscreen mode. Arrow keys, swipe, buttons.
   ==================================================================== */
.deck-viewer {
  position: relative;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-lavender) 12%, transparent), rgba(26, 19, 64, 0.55));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid color-mix(in srgb, var(--accent-lavender) 22%, transparent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow), 0 0 60px color-mix(in srgb, var(--accent-lavender) 10%, transparent);
}
.deck-viewer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--accent-lavender);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-lavender) 60%, transparent);
  z-index: 2;
}
.deck-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0d2e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}
.deck-stage canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Image-based slide (pre-rendered PNGs — no PDF.js, no browser PDF toolbar,
   no print/download possible since each slide is just an image). */
.deck-slide {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}
.deck-viewer:fullscreen .deck-slide,
.deck-viewer.is-fullscreen .deck-slide {
  max-height: calc(100vh - 80px);
}
.deck-stage__placeholder {
  text-align: center;
  padding: clamp(20px, 4vw, 40px);
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 480px;
}
.deck-stage__placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(189, 144, 251, 0.14);
  border: 1px dashed rgba(189, 144, 251, 0.4);
  color: var(--brand-300);
  display: flex;
  align-items: center;
  justify-content: center;
}
.deck-stage__placeholder-icon svg { width: 30px; height: 30px; }
.deck-stage__placeholder-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-300);
}
.deck-stage__placeholder-hint {
  font-size: 13px;
  color: var(--ink-muted);
}
.deck-stage__placeholder-hint code {
  font-family: "SF Mono", "Menlo", monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.deck-stage__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 13, 46, 0.85);
  z-index: 3;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.deck-stage__loader.is-hidden { display: none; }

/* "Click to enter fullscreen" hint — shown only when NOT in fullscreen */
.deck-stage__hint {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  padding: 6px 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(20, 23, 70, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(189, 144, 251, 0.4);
  border-radius: 999px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--duration-fast) var(--ease);
}
.deck-stage__hint svg { width: 12px; height: 12px; }
/* Hide the enter-fullscreen hint when we're already in fullscreen. */
.deck-viewer:fullscreen .deck-stage__hint,
.deck-viewer.is-fullscreen .deck-stage__hint { display: none; }

/* Deck controls bar */
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(14px, 2.5vw, 22px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}
/* When there's no right-side actions, center the nav group. */
.deck-controls--centered { justify-content: center; }
.deck-controls__nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.deck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(189, 144, 251, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.deck-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(189, 144, 251, 0.5);
}
.deck-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.deck-btn svg { width: 16px; height: 16px; }
.deck-btn--icon { padding: 0; width: 40px; }
.deck-btn--primary {
  background: var(--brand-500);
  color: var(--bg-app);
  border-color: var(--brand-500);
}
.deck-btn--primary:hover:not(:disabled) {
  background: var(--brand-300);
  border-color: var(--brand-300);
}

.deck-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  min-width: 64px;
  text-align: center;
}
.deck-counter strong { color: var(--ink); font-weight: 700; }

.deck-controls__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Fullscreen mode — applied to .deck-viewer */
.deck-viewer.is-fullscreen,
.deck-viewer:fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999;
  margin: 0;
  border-radius: 0;
  border: 0;
  background: #0b0d2e;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}
.deck-viewer:fullscreen .deck-stage,
.deck-viewer.is-fullscreen .deck-stage {
  flex: 1;
  aspect-ratio: auto;
  min-height: 0;
}
.deck-viewer:fullscreen .deck-controls,
.deck-viewer.is-fullscreen .deck-controls {
  background: rgba(11, 13, 46, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Exit-fullscreen badge — clickable, shown only in fullscreen.
   Positioned in the same upper-right slot where the "click to enter
   fullscreen" hint normally lives. */
.deck-exit-hint {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  padding: 8px 16px 8px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink);
  background: rgba(20, 23, 70, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(189, 144, 251, 0.55);
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease);
  animation: fadeInDown 400ms var(--ease) both;
}
.deck-exit-hint:hover {
  background: rgba(40, 45, 110, 0.95);
  border-color: rgba(189, 144, 251, 0.85);
  transform: scale(1.03);
}
.deck-exit-hint svg { width: 14px; height: 14px; flex-shrink: 0; }
.deck-exit-hint kbd {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 10.5px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: var(--ink-muted);
}
.deck-viewer:fullscreen .deck-exit-hint,
.deck-viewer.is-fullscreen .deck-exit-hint { display: inline-flex; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* (Duplicate fadeInDown removed — the new exit badge uses translateY only.) */

/* ====================================================================
   DEMOS — THE STAR
   Per-demo block: context card → big video w/ synced captions → benefits
   ==================================================================== */
.demo-block {
  --accent: var(--accent-teal);
  --accent-soft: var(--accent-teal-soft);
  margin-top: clamp(48px, 7vh, 88px);
  /* No divider between demos — spacing alone separates them. */
}
.demo-block:first-of-type { margin-top: 0; }
.demo-block.accent-teal     { --accent: var(--accent-teal);     --accent-soft: var(--accent-teal-soft); }
.demo-block.accent-lavender { --accent: var(--accent-lavender); --accent-soft: var(--accent-lavender-soft); }
.demo-block.accent-indigo   { --accent: var(--accent-indigo);   --accent-soft: var(--accent-indigo-soft); }
.demo-block.accent-mint     { --accent: var(--accent-mint);     --accent-soft: var(--accent-mint-soft); }
.demo-block.accent-sky      { --accent: var(--accent-sky);      --accent-soft: var(--accent-sky-soft); }

.demo-block__header {
  margin-bottom: 22px;
}
.demo-block__theme {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 8px;
}
.demo-block__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

/* Layout: stacked rows on all screen sizes — context on top, video/captions
   in the middle (the centerpiece), benefits at the bottom. */
.demo-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 22px);
}

/* When demos are stacked full-width, benefits get a 2-column layout on
   larger screens since there's room to breathe. */
@media (min-width: 760px) {
  .benefits-card__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
  }
}

/* Slide-styled cards (context + benefits) */
.slide-card {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), rgba(26, 19, 64, 0.6));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}
.slide-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 16px 16px 0 0;
}
.slide-card__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 12px;
}
.context-card__headline,
.benefits-card__headline {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.context-card__body {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 90ch;
}

/* "In this demo" summary card — sits right below the video. */
.in-this-demo__body {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 90ch;
}

.benefits-card__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.benefits-card__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.benefits-card__bullet {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
  margin-top: 1px;
}
.benefits-card__bullet svg { width: 11px; height: 11px; }
.benefits-card__text {
  flex: 1;
  min-width: 0;
}
.benefits-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.1px;
  margin-bottom: 2px;
}
.benefits-card__desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Parts switcher — pill bar above the video for multi-part demos */
.parts-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px clamp(14px, 2.5vw, 22px) 0;
  background: linear-gradient(180deg, rgba(11, 13, 46, 0.35), transparent);
}
.part-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.part-pill:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
}
.part-pill.is-active {
  color: var(--bg-app);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 38%, transparent);
}
.part-pill.is-active:hover {
  background: var(--accent);
  color: var(--bg-app);
}

/* Demo video stage (the centerpiece) */
.demo-stage {
  position: relative;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(26, 19, 64, 0.55));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow), 0 0 60px color-mix(in srgb, var(--accent) 10%, transparent);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.demo-stage::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 55%, transparent);
  z-index: 2;
}
.demo-stage__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0d2e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-stage__player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0d2e;
}
.demo-stage__placeholder {
  text-align: center;
  padding: clamp(20px, 4vw, 32px);
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.demo-stage__placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-stage__placeholder-icon svg { width: 28px; height: 28px; }
.demo-stage__placeholder-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.demo-stage__placeholder-hint {
  font-size: 13px;
  max-width: 40ch;
}

/* Caption strip (below video) */
.caption-strip {
  position: relative;
  padding: clamp(14px, 2.2vw, 20px) clamp(18px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 78px;
  display: flex;
  align-items: center;
  background: rgba(11, 13, 46, 0.4);
}
.caption-strip__label {
  position: absolute;
  top: -10px;
  left: clamp(16px, 3vw, 24px);
  padding: 3px 10px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: var(--bg-app);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
}
.caption-strip__text {
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  flex: 1;
  text-wrap: pretty;
  transition: opacity var(--duration-fast) var(--ease);
  min-width: 0;
}
.caption-strip__text.is-fading { opacity: 0.4; }
.caption-strip__placeholder {
  color: var(--ink-dim);
  font-style: italic;
  font-size: 13px;
}

/* When the demo is very wide, give the demo-stage a min height so video doesn't shrink */
@media (min-width: 1100px) {
  .demo-stage { min-height: 0; }
  .slide-card { min-height: 0; }
}

/* ====================================================================
   ARCHITECTURE SECTION
   ==================================================================== */
.arch-diagram {
  position: relative;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-indigo) 12%, transparent), rgba(26, 19, 64, 0.55));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid color-mix(in srgb, var(--accent-indigo) 22%, transparent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--glass-shadow);
}
.arch-diagram::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--accent-indigo);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-indigo) 55%, transparent);
}
.arch-diagram__img {
  width: 100%;
  height: auto;
  background: rgba(11, 13, 46, 0.5);
  padding: clamp(20px, 4vw, 32px);
}
.arch-diagram__placeholder {
  aspect-ratio: 16 / 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(24px, 5vw, 40px);
  color: var(--ink-muted);
  text-align: center;
}
.arch-diagram__placeholder-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent-indigo) 18%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent-indigo) 45%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-indigo-soft);
}
.arch-diagram__caption {
  padding: 12px clamp(16px, 3vw, 24px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.arch-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.arch-pillar {
  padding: clamp(20px, 3vw, 26px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-indigo) 10%, transparent), rgba(26, 19, 64, 0.55));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid color-mix(in srgb, var(--accent-indigo) 20%, transparent);
  border-top: 3px solid var(--accent-indigo);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all var(--duration-med) var(--ease);
}
.arch-pillar:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-indigo) 45%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px color-mix(in srgb, var(--accent-indigo) 14%, transparent);
}
.arch-pillar__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}
.arch-pillar__desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ====================================================================
   LEARN MORE SECTION
   ==================================================================== */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.learn-card {
  position: relative;
  padding: clamp(22px, 3.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-sky) 10%, transparent), rgba(26, 19, 64, 0.55));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid color-mix(in srgb, var(--accent-sky) 22%, transparent);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all var(--duration-med) var(--ease);
  text-align: left;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.learn-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--accent-sky);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-sky) 55%, transparent);
  border-radius: 16px 16px 0 0;
}
.learn-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-sky) 45%, transparent);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5), 0 0 24px color-mix(in srgb, var(--accent-sky) 14%, transparent);
}
.learn-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.learn-card.is-disabled:hover { transform: none; }
.learn-card__type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-sky-soft);
}
.learn-card__title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.learn-card__desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
}
.learn-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-sky-soft);
  letter-spacing: 0.3px;
  margin-top: 4px;
}
.learn-card__cta svg { width: 13px; height: 13px; }

/* ====================================================================
   BUTTONS (shared)
   ==================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary {
  background: var(--brand-500);
  color: var(--bg-app);
  box-shadow: 0 8px 24px rgba(153, 101, 229, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(153, 101, 229, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(189, 144, 251, 0.28);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(189, 144, 251, 0.5);
}
.btn svg { width: 14px; height: 14px; }

/* ====================================================================
   CLOSING + FOOTER
   ==================================================================== */
.closing-band {
  margin-top: clamp(56px, 8vh, 100px);
  padding: clamp(32px, 5vh, 56px) clamp(24px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(153, 101, 229, 0.15), rgba(83, 32, 182, 0.22));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(189, 144, 251, 0.28);
  box-shadow: var(--glass-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-band__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 14px;
}
.closing-band__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.18;
  margin-bottom: 14px;
}
.closing-band__sub {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--ink-muted);
  max-width: 72ch;
  margin: 0 auto 24px;
  line-height: 1.6;
}
/* Team grid inside the closing band */
.closing-band__team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(189, 144, 251, 0.18);
  text-align: left;
}

.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(189, 144, 251, 0.14);
  color: var(--ink-dim);
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(189, 144, 251, 0.06), rgba(26, 19, 64, 0.45));
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(189, 144, 251, 0.18);
  border-radius: 12px;
  transition: all var(--duration-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
  color: inherit;
}
.team-card:hover {
  border-color: rgba(189, 144, 251, 0.5);
  background: linear-gradient(135deg, rgba(189, 144, 251, 0.12), rgba(26, 19, 64, 0.55));
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.team-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.1px;
  line-height: 1.2;
}
.team-card__title {
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: 0.1px;
  line-height: 1.35;
}
.team-card__email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-300);
  letter-spacing: 0.1px;
  word-break: break-all;
}
.team-card__email svg { width: 13px; height: 13px; flex-shrink: 0; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.site-footer .nova-logo { height: 22px; opacity: 0.7; }

/* ====================================================================
   ANIMATIONS + FOCUS
   ==================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in > * {
  animation: fadeInUp var(--duration-slow) var(--ease) both;
}
.fade-in > *:nth-child(2) { animation-delay: 80ms; }
.fade-in > *:nth-child(3) { animation-delay: 160ms; }
.fade-in > *:nth-child(4) { animation-delay: 240ms; }
.fade-in > *:nth-child(5) { animation-delay: 320ms; }
.fade-in > *:nth-child(6) { animation-delay: 400ms; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 3px;
}

/* ====================================================================
   RESPONSIVE BREAKPOINTS
   ==================================================================== */
@media (max-width: 1023px) {
  .demo-block__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topnav { gap: 8px; }
  .topnav__meta { font-size: 9.5px; letter-spacing: 1.5px; }
  .hero { padding-bottom: 48px; }
  .hero__meta-item { min-width: 100px; }
  .deck-stage__hint { font-size: 9.5px; padding: 5px 9px; }
  .deck-stage__hint .label { display: none; }
  .deck-btn { min-width: 36px; height: 36px; padding: 0 10px; font-size: 11.5px; }
  .deck-btn--icon { width: 36px; }
  .deck-counter { font-size: 12px; min-width: 56px; }
  .deck-controls { gap: 8px; padding: 12px; }
  .caption-strip { min-height: 64px; padding: 14px 16px; }
  .caption-strip__label { font-size: 9px; left: 14px; }
  .demo-stage__placeholder-hint { font-size: 12.5px; }
  .closing-band { padding: 28px 22px; }
  .site-footer { font-size: 10px; }
}
@media (max-width: 480px) {
  :root { --safe-x: 16px; --safe-y: 20px; }
  .hero__title { font-size: clamp(32px, 9vw, 48px); }
  .section__num { font-size: 16px; }
  .deck-btn__label { display: none; }
  .deck-btn--primary .deck-btn__label { display: inline; }
}

/* Hide scrollbars cleanly when in fullscreen */
.deck-viewer:fullscreen { overflow: hidden; }
.deck-viewer:fullscreen .deck-stage canvas { box-shadow: 0 0 60px rgba(0, 0, 0, 0.6); }
